package com.lesserpand.lspand.story.item.entity;

import com.alibaba.fastjson.annotation.JSONType;
import com.alibaba.fastjson.serializer.SerializerFeature;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author bailuo
 * @version 2.0
 * @Description TODO
 * @Date Created in 2018/11/24 11:59
 */
@Data
@JSONType(serialzeFeatures = {
        SerializerFeature.WriteMapNullValue,
        SerializerFeature.WriteNullStringAsEmpty,
        SerializerFeature.WriteNullListAsEmpty,
        SerializerFeature.WriteNullNumberAsZero,
        SerializerFeature.WriteNullBooleanAsFalse
})
public class NewInfoDTO {
    public static final String INDEX_NAME = "index_entity";
    public static final String TYPE = "tstype";

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 1)
    private Timestamp gmtCreate;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", position = 1)
    private Timestamp gmtModified;

    private Long id;

    private String title;

    private String introduction;

    private String details;
}
